<template>
    <div>
      <!--    面包屑导航区域-->
      <el-breadcrumb separator-class="el-icon-arrow-right">
        <el-breadcrumb-item :to="{ path: '/home' }">首页</el-breadcrumb-item>
        <el-breadcrumb-item><b>作业管理</b></el-breadcrumb-item>
        <el-breadcrumb-item :to="{ path: '/Homework' }">题目集列表</el-breadcrumb-item>
        <el-breadcrumb-item><span style="color: #545c99">作业列表</span></el-breadcrumb-item>
      </el-breadcrumb>

      <el-card>

      </el-card>
    </div>
</template>

<script>
  export default {
    name: 'CheckTest',
    data(){
      return{
        setInfo: [], // 题目集信息
        testList: [], // 题目列表
        testCount: [], // 题目集批改数据
      }
    },
    created () {
      this.getSetInfo()
    },
    methods:{
      getSetInfo(){
        var setInfo = this.$route.query.set
        this.setInfo = setInfo
        // console.log(setInfo)
      },
      // 获取题目集中的题目信息
      async getTestInfo(){
        const { data: res } = await this.$http.get('/homework/showTestNumList/' + this.setInfo.setId)
        if (res.status !== 200) {
          return this.$message.error(res.msg)
        }
        this.testList = res.data.test
        this.testCount = res.data.count
        console.log(res.data)
      },

    }
  }
</script>

<style scoped>

</style>
